/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 背景容器样式 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 背景动效容器 */
#background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 背景canvas样式 */
#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 背景遮罩 - 设置为透明 */
.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: transparent;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 - 增强毛玻璃效果 */
.sidebar {
    width: 150px;
    background-color: rgba(44, 62, 80, 0.75);
    color: white;
    padding: 20px 0;
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.menu {
    list-style: none;
    margin-top: 30px;
}

.menu-item {
    margin: 0;
}

.menu-item a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateX(4px);
}

.menu-item a {
    transition: all 0.3s ease;
}

.menu-item a.active {
    background-color: #3498db;
    color: white;
    border-left: 3px solid #2ecc71;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    padding: 0;
}

/* 头部样式 - 增强毛玻璃效果 */
.header {
    background-color: rgba(255, 255, 255, 0.75);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left h1 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    margin-right: 20px;
    color: #666;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* 内容区域样式 */
.content {
    padding: 30px;
    /* 设置为透明 */
    background-color: transparent;
    backdrop-filter: blur(5px);
}

/* 表单样式 */
.form {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

/* 卡片样式 - 增强毛玻璃效果 */
.card {
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.85);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
}

/* 消息提示样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 - 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 130px;
    }
    
    .sidebar-header h2 {
        font-size: 18px;
    }
    
    .menu-item a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .header {
        padding: 12px 20px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .content {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    /* 表格适配 */
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    /* 表单适配 */
    .form {
        max-width: 100%;
    }
}

/* 响应式设计 - 手机设备 (小于768px) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px 0;
        position: relative;
    }
    
    .sidebar-header {
        padding: 0 15px 15px;
    }
    
    .menu {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-item {
        width: 45%;
        margin: 5px;
        padding: 10px;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }
    
    .menu-item a {
        text-align: center;
        padding: 8px 10px;
        border-radius: 4px;
    }
    
    .header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 16px;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
        width: 100%;
    }
    
    .header-right button {
        margin: 5px;
        width: calc(50% - 10px);
        height: 32px;
        font-size: 12px;
    }
    
    .content {
        padding: 15px;
        margin-left: 0;
    }
    
    .card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .card-header h2 {
        font-size: 18px;
    }
    
    /* 表格适配 - 小屏幕优化 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 12px;
        width: 100%;
        min-width: 500px;
    }
    
    .table th,
    .table td {
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    /* 表单适配 */
    .form {
        padding: 20px 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* 优化静态页面管理页面的按钮布局 */
    .content .btn {
        display: block;
        margin-bottom: 10px;
    }
}

/* 统一的管理页面容器样式 */
.admin-container {
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.admin-content {
    min-height: 400px;
}

/* 响应式设计 - 小屏幕手机 (小于480px) */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .menu-item {
        width: 100%;
        margin: 3px 0;
        padding: 8px;
        font-size: 12px;
    }
    
    .sidebar {
        padding: 5px;
    }
    
    .header-left h1 {
        font-size: 14px;
    }
    
    .user-info {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-right button {
        width: calc(50% - 6px);
        height: 30px;
        font-size: 11px;
        margin: 3px;
        padding: 5px;
    }
    
    .content {
        padding: 10px;
    }
    
    .card {
        padding: 12px;
        border-radius: 6px;
    }
    
    .admin-container {
        margin: 10px;
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .card-header h2 {
        font-size: 16px;
    }
    
    .btn {
        font-size: 13px;
        padding: 7px 10px;
    }
    
    .table {
        font-size: 11px;
        min-width: 400px;
    }
    
    .table th,
    .table td {
        padding: 6px 3px;
    }
    
    /* 优化小屏幕下的操作按钮 */
    .operation-buttons {
        display: flex;
        flex-direction: column;
    }
    
    .operation-buttons .btn {
        width: 100%;
        margin-bottom: 5px;
        font-size: 11px;
        padding: 5px;
    }
    
    /* 确保复选框在小屏幕上可见 */
    input[type="checkbox"] {
        transform: scale(1.2);
        margin-right: 5px;
    }
    
    /* 表单适配 */
    .form {
        padding: 15px 10px;
        border-radius: 6px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-input,
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
}